package org.demos.springaiargdemo1.model.dto;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ErrorResponse {
    
    /**
     * 错误详情
     */
    private ErrorDetail error;
    
    @Data
    @Builder
    public static class ErrorDetail {
        
        /**
         * 错误消息
         */
        private String message;
        
        /**
         * 错误类型
         */
        private String type;
        
        /**
         * 错误代码
         */
        private String code;
    }
} 